package sam.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sam.web.domain.User;

/**
 * @Auther: xcc
 * @Date:
 */
/**
 * @Auther: Sam
 * @Date: 2021/04/16/18:54
 */
@RestController("/hello")
public class HelloController {

    @RequestMapping("/getAll")
    public String getAll(){
        return "请恕我直言,在座的各位都是垃圾";
    }
    @RequestMapping("/ji1")
    public String ji1(){
        System.out.println("狗");
        return "哈哈哈哈哈";
    }
    @RequestMapping("/ji4")
    public String ji4(){return "哈哈哈哈哈";
    }
    @RequestMapping("/hello")
    public String ji(){
        System.out.println("狗");
        return "哈哈哈哈哈";
    }
    @RequestMapping("/hello1")
    public String jib6(){
        System.out.println("狗");
        return "哈哈哈哈哈";
    }

    @RequestMapping("/get1")
    public Object get1(User user){
        user.setUsername("赖总");
        user.setPassword("123");
        return user;
    }

    @RequestMapping("/get2")
    public Object get2(User user){
        user.setUsername("赖总");
        user.setPassword("123");
        return user;
    }
    @RequestMapping("/get3")
    public Object get3(User user){
        user.setUsername("赖总");
        user.setPassword("123");
        return user;
    }
    @RequestMapping("/get4")
    public Object get4(User user){
        user.setUsername("赖总");
        user.setPassword("123");
        return user;
    }
    @RequestMapping("/get6")
    public Object get6(User user){
        user.setUsername("赖总");
        user.setPassword("123");
        return user;
    }
    @RequestMapping("/get7")
    public Object get7(User user){
        user.setUsername("赖总");
        user.setPassword("123");
        return user;
    }
}
